package cn.elves.model.provider;

import cn.elves.model.entity.dto.response.ResponseDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service" ,contextId = "verificationCode")
public interface VerificationCodeProvider {

    @GetMapping("checkCode")
    public ResponseDTO<Boolean> checkCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
